<?php

namespace app\admin\validate;

use think\Validate;

class ClothmakingDelivery extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'status' => 'require|in:pending,shipped,delivered,cancelled'
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'status.require' => '发货状态不能为空',
        'status.in' => '发货状态值无效'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add' => ['status'],
        'edit' => ['status'],
    ];

}
